<?php if(!defined('CALL')) exit('No direct script access allowed');

include_once('ctrl/page.class.php');
include_once('view/v_usercard.class.php');
include_once('view/v_menus.class.php');
include_once('view/v_users.class.php');
include_once('models/m_user.class.php');

class PageUsers extends Page
{
	public function __construct($actor, $user)
	{
		parent::__construct($actor, $user);
		$this->page_name = "users";
		$this->user->stat = mUser::get_stat($this->user->id);
		
	}
	
	protected function gen_main()
	{
		return vUsers::buildUserPage($this->actor, $this->user);
	}

	protected function gen_side()
	{
		$html = '';
		
		$menus = new vMenus();
		$html .= $menus->gen_search_form();
		
		$card = new vUsercard();
		$html .= $card->generate($this->user, $this->actor, FALSE);
		
		return $html;
	}

	protected function add_css()
	{
		return "";
	}

	protected function add_css_files()
	{
		return "";
	}

	protected function add_js()
	{
		return "";
	}

	protected function add_js_files()
	{
		return "";
	}
}
